package com.lzy.product.apis.impl;

import com.lzy.product.apis.AgentProtocolSystemServiceApi;
import com.lzy.product.dtos.agent.AgentProtocolSystemDto;
import com.lzy.product.service.AgentProtocolSystemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by WIN7 on 2018/04/14.
 */
@Service
public class AgentProtocolSystemServiceApiImpl implements AgentProtocolSystemServiceApi {

    @Autowired
    AgentProtocolSystemService agentProtocolSystemService;

    @Override
    public Long insert(AgentProtocolSystemDto dto) {
        return agentProtocolSystemService.insert(dto);
    }

    @Override
    public Boolean update(AgentProtocolSystemDto dto) {
        return agentProtocolSystemService.update(dto);
    }

    @Override
    public Boolean delete(Long id) {
        return agentProtocolSystemService.delete(id);
    }

    @Override
    public Boolean remove(Long id) {
        return agentProtocolSystemService.remove(id);
    }

    @Override
    public AgentProtocolSystemDto findById(Long id) {
        return agentProtocolSystemService.findById(id);
    }

    @Override
    public List<AgentProtocolSystemDto> query(AgentProtocolSystemDto dto) {
        return agentProtocolSystemService.query(dto);
    }

    @Override
    public List<AgentProtocolSystemDto> selectByProtocolId(Long protocolId) {
        return agentProtocolSystemService.selectByProtocolId(protocolId);
    }

    @Override
    public Boolean deleteByProtocolId(Long protocolId) {
        return agentProtocolSystemService.deleteByProtocolId(protocolId);
    }
}
